//
//  XWtempViewController.swift
//  新浪 weibo
//
//  Created by xuwei on 16/1/19.
//  Copyright © 2016年 xuwei. All rights reserved.
//

import UIKit

class XWTempViewController: UIViewController {
   
    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    private func setupUI(){
        view.backgroundColor = UIColor.whiteColor()
        
        title = "当前第\((navigationController?.childViewControllers.count ?? 0)-1)个"
         navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH", target: self, action: "push")
    }
    @objc private func push(){
        let vc = XWTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
